Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conhost: copy RTF to clipboard #3595

Merged
3 commits merged into from
Dec 5, 2019
Merged

Conversation

anirudhrb
Copy link
Contributor

RTF data is now copied to the clipboard. The clipboard format name
used for RTF data is Rich Text Format.

Refactored some code in Clipboard.cpp so that the code for setting
data to the clipboard is re-used. Also, renamed parameter
fAlsoCopyHtml to fAlsoCopyFormatting to make it more generic.

Tested by copying text from console to WordPad. Also verified that
HTML copy is not regressed by copying to Word.

Closes #3560.

RTF data is now copied to the clipboard. The clipboard format name
used for RTF data is `Rich Text Format`.

Refactored some code in `Clipboard.cpp` so that code for setting
data to the clipboard is re-used. Also, renamed parameter
`fAlsoCopyHtml` to `fAlsoCopyFormatting` to make it more generic.

Tested by copying text from console to WordPad. Also verified that
HTML copy is not regressed by copying to Word.
@anirudhrb
Copy link
Contributor Author

Please review! @carlos-zamora @DHowett-MSFT

Copy link
Member

@carlos-zamora carlos-zamora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few minor things. Other than that, looks good 👍

src/interactivity/win32/Clipboard.cpp Outdated Show resolved Hide resolved
src/interactivity/win32/Clipboard.cpp Outdated Show resolved Hide resolved
@ghost ghost added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Nov 22, 2019
@ghost ghost removed the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Nov 23, 2019
@carlos-zamora carlos-zamora added the Needs-Second It's a PR that needs another sign-off label Nov 25, 2019
Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these are probably just nits so I'll approve. Thanks!

src/interactivity/win32/Clipboard.cpp Outdated Show resolved Hide resolved
src/interactivity/win32/Clipboard.cpp Outdated Show resolved Hide resolved
Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making that change!

@zadjii-msft zadjii-msft added the AutoMerge Marked for automatic merge by the bot when requirements are met label Dec 5, 2019
@ghost
Copy link

ghost commented Dec 5, 2019

Hello @zadjii-msft!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit f1ff0cf into microsoft:master Dec 5, 2019
@anirudhrb anirudhrb deleted the rtf_copy_conhost branch December 6, 2019 06:01
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoMerge Marked for automatic merge by the bot when requirements are met Needs-Second It's a PR that needs another sign-off
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connect GenRTF to conhost (Win32Interactivity Clipboard)
3 participants